import request from '@/utils/request'
const qs = require("qs");

export function list(param) {
  return request({
    url: '/rule/list',
    method: 'get',
    params:param
  })
}

export function loadRule(id){
  return request({
    url: '/rule/item',
    method: 'get',
    params:{
      id: id
    }
  })
}


export function ruleAddOrUpdate(data) {
  return request({
    url: '/rule/addOrUpdate',
    method: 'post',
    data
  })
}


export function deleteItem(data) {
  return request({
    url: '/rule/delete',
    method: 'post',
    params:data
  })
}


